package com.campus.delivery.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 积分兑换记录表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-05-12
 */
@Getter
@Setter
@TableName("points_exchange")
@ApiModel(value = "PointsExchange对象", description = "积分兑换记录表")
public class PointsExchange extends IntegerIdBaseEntity<PointsExchange> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("积分商品ID")
    @TableField("goods_id")
    private Integer goodsId;

    @ApiModelProperty("商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty("消耗积分")
    @TableField("points")
    private Integer points;

    @ApiModelProperty("状态：1-待发货，2-已发货，3-已完成")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("兑换时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("完成时间")
    @TableField("finish_time")
    private LocalDateTime finishTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
